package com.supor.aiot.home.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * ---------------------------------------------------------------- <br>
 * Copyright (C) 2014-2020, by het, Shenzhen, All rights reserved.  <br>
 * ---------------------------------------------------------------- <br>
 * <p>
 * 描述: WifiBean <br>
 * 作者: lei <br>
 * 日期: 2020/12/8 <br>
 */
public class WifiBean implements Parcelable {
    String ssid;
    String password;
    String rssi;
    String frequency;
    String mac;

    public WifiBean(String ssid, String password) {
        this.ssid = ssid;
        this.password = password;
    }

    public String getSsid() {
        return ssid;
    }

    public void setSsid(String ssid) {
        this.ssid = ssid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRssi() {
        return rssi;
    }

    public void setRssi(String rssi) {
        this.rssi = rssi;
    }

    public String getFrequency() {
        return frequency;
    }

    public void setFrequency(String frequency) {
        this.frequency = frequency;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.ssid);
        dest.writeString(this.password);
        dest.writeString(this.rssi);
        dest.writeString(this.frequency);
        dest.writeString(this.mac);
    }

    protected WifiBean(Parcel in) {
        this.ssid = in.readString();
        this.password = in.readString();
        this.rssi = in.readString();
        this.frequency = in.readString();
        this.mac = in.readString();
    }

    public static final Creator<WifiBean> CREATOR = new Creator<WifiBean>() {
        @Override
        public WifiBean createFromParcel(Parcel source) {
            return new WifiBean(source);
        }

        @Override
        public WifiBean[] newArray(int size) {
            return new WifiBean[size];
        }
    };
}
